Loop based on an expression.
While <expression>
statements
...
WEnd
Parameters
expression | If the expression is true the following statements up to the WEnd statement are executed. This loop continues until the expression is false. |
Remarks
While...WEnd statements may be nested.
Related
ContinueLoop, Do...Until, ExitLoop
Example
$i = 0
While $i <= 10
MsgBox(0, "Value of $i is:", $i)
$i = $i + 1
WEnd